-- GENERATED SPELL FOR [Bonechewer Brawler] --


function spell0_23222(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(41254,pUnit)
pUnit:RegisterEvent('Sorts_23222', 8289, 1)
end

function spell1_23222(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(8269,pUnit)
pUnit:RegisterEvent('Sorts_23222', 595, 1)
end

function Sorts_23222(pUnit, Event)
local choix_sorts_23222 = math.random(0, 1)
if choix_sorts_23222 == 0 then
pUnit:RegisterEvent('spell0_23222', 1, 1)
end
if choix_sorts_23222 == 1 then
pUnit:RegisterEvent('spell1_23222', 1, 1)
end
end

function mob23222_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23222', math.random(1500, 3000), 1)
end

function mob23222_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23222_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23222_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23222, 1, 'mob23222_Action')
RegisterUnitEvent(23222, 2, 'mob23222_Leave')
RegisterUnitEvent(23222, 3, 'mob23222_Kill')
RegisterUnitEvent(23222, 4, 'mob23222_Die')
